package com.sm.healthy.ui.frag

import android.os.Bundle
import com.sm.healthy.R
import com.sm.healthy.base.BaseFragment
import com.sm.healthy.databinding.FrgDemoBinding
import com.sm.healthy.model.MainViewModel

class DemoFrg : BaseFragment<MainViewModel, FrgDemoBinding>() {
    override fun layoutId(): Int = R.layout.frg_demo

    override fun initView(savedInstanceState: Bundle?) = with(mDatabind) {
        model = mViewModel
        click = Click()
    }

    /**
     * 处理liveData flow等数据绑定
     */
    override fun createObserver() {
        super.createObserver()
    }

    inner class Click {
        fun test() {

        }

    }
}